var path = require('path');
var webpack = require('webpack');

module.exports = {
  devtool: 'source-map',
  entry: [
    'webpack-dev-server/client?http://localhost:8888',
    'webpack/hot/only-dev-server',
    './src/app/index.js'
  ],
  output: {
    path: __dirname,
    filename: 'bundle.js'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin()
  ],
  module: {
    loaders: [{
      test: /\.(js|jsx)$/,
      loaders: ['react-hot', 'babel'],
      exclude: /(node_modules)/,
      include: __dirname
    }]
  }
};

/*
,
  resolve: {
    alias: {
      'component_path': path.resolve(__dirname + '/src/components'),
      'root_path': path.resolve(__dirname+'/src')
    },
    extensions: ['.js', '.jsx']
  }
*/
